package com.simple.util.common;

import org.springframework.web.context.ContextLoader;


public class SpringUtil {
    /**
     * Return an instance of the specified bean.
     * 
     * @param beanRef
     *            The name of the bean to retrieve
     * @return A bean instance
     */
    public static Object getBean(final String beanRef) {
    	return ContextLoader.getCurrentWebApplicationContext().getBean(beanRef);
    }
    
    
}
